package cn.maxhou.service;

import cn.maxhou.entity.SysRole;
import cn.maxhou.entity.SysUser;
import cn.maxhou.util.Page;

import java.util.List;

public interface SysRoleService {
    /**查询全部角色信息*/
    public List<SysRole> findAll() throws Exception;
    /**保存或修改用户信息*/
    public boolean saveOrUpdate(SysRole entity) throws Exception;

    /**根据ID获取用户详细信息*/
    public SysRole findById(Long id) throws Exception;
    public int deleteById(Long id)throws Exception;
    public SysRole getByCode(String code);
}
